package com.example.justbuy.pojo;

import java.util.Date;
import java.util.List;

/*Order订单表*/
public class Order {
    /*编号*/
    private int id;
    /*添加时间*/
    private Date addTime;
    /*订单id*/
    private String orderId;
    /*商品id*/
    private int goodsId;
    /*店铺id*/
    private int storeId;
    /*数量*/
    private int orderNum;
    /*总价*/
    private double allPrice;
    /*状态*/
    private String orderState;
    /*优惠金额*/
    private Double discountsMoney;
    /*实付金额*/
    private Double realtyMoney;
    /*关联userid*/
    private int userId;
    /*goods实体*/
    private List<Goods> goods;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    /*总数*/
    private  String address;


    private  int sum;
    /*models对应商品的规格*/
    private String models;

    public String getModels() {
        return models;
    }

    public void setModels(String models) {
        this.models = models;
    }

    public int getSum() {
        return sum;
    }

    public void setSum(int sum) {
        this.sum = sum;
    }

    public  Order(){}

    public  Order(int id,int storeId,int goodsId,int userId,int orderNum,String orderId,String orderState,
    double allPrice,double discountsMoney,double realtyMoney,Date addTime,Goods goods){
        this.addTime=addTime;
        this.id=id;
        this.allPrice=allPrice;
        this.discountsMoney=discountsMoney;
        this.goodsId=goodsId;
        this.orderId=orderId;
        this.orderNum=orderNum;
        this.orderState=orderState;
        this.realtyMoney=realtyMoney;
        this.storeId=storeId;
        this.userId=userId;
    }

    public List<Goods> getGoods() {
        return goods;
    }

    public void setGoods(List<Goods> goods) {
        this.goods = goods;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public int getStoreId() {
        return storeId;
    }

    public void setStoreId(int storeId) {
        this.storeId = storeId;
    }

    public int getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(int orderNum) {
        this.orderNum = orderNum;
    }

    public double getAllPrice() {
        return allPrice;
    }

    public void setAllPrice(double allPrice) {
        this.allPrice = allPrice;
    }

    public String getOrderState() {
        return orderState;
    }

    public void setOrderState(String orderState) {
        this.orderState = orderState;
    }

    public Double getDiscountsMoney() {
        return discountsMoney;
    }

    public void setDiscountsMoney(Double discountsMoney) {
        this.discountsMoney = discountsMoney;
    }

    public Double getRealtyMoney() {
        return realtyMoney;
    }

    public void setRealtyMoney(Double realtyMoney) {
        this.realtyMoney = realtyMoney;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }


}
